package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {




    @Select(" select * from user where username=#{username} and password=#{password}")
    User loginUser(User user);


    @Select(" select * from user where username=#{username}")
    User registerUser(User user);


    @Insert("insert into user value (null,#{username},#{password})")
    int addUser(User user);
}
